package com.lovo.manage_back.dao;

import com.lovo.manage_back.bean.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author BDK-THINKPAD
* @description 针对表【t_role(角色表)】的数据库操作Mapper
* @createDate 2023-08-02 09:35:27
* @Entity com.lovo.manage_back.bean.Role
*/
@Repository
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> listRole();
    List<Role> listRoleByUserId(Integer userId);
    int insertUserRole(Integer userId,Integer roleId);
    int deleteUserRoleByUserId(Integer userId);
}




